.messageOnRight {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0;
 
  .messageUser {
    text-align: right;
  }

  .message {
    margin-right: 10px;
  }
  .messageWrap {
    background-color: #1677ff;
    font-size: 15px;
    border-radius: 4px;
    line-height: 1;
    padding: 10px;
    font-weight: 600;
    position: relative;
    &::after {
      position: absolute;
      content: '';
      right: -16px;
      top: 10px;
      width: 0;
      height: 0;
      border-top: 6px solid transparent;
      border-right: 8px solid transparent;
      border-bottom: 6px solid transparent;
      border-left: 8px solid #1677ff;
    }
  }
}

.messageOnLeft {
  justify-content: flex-start;
  .messageUser {
    text-align: left;
  }
  .message {
    margin-left: 10px;
  }
  .messageWrap {
    background-color: white;
    &::after {
      border-top: 6px solid transparent;
      border-left: 8px solid transparent;
      border-bottom: 6px solid transparent;
      border-right: 8px solid white;
      left: -16px;
    }
  }
}
